if (CMAKE_COMPILER_IS_GNUCXX)
  add_definitions(--no-warnings)
elseif(MSVC)
  add_definitions(/W0)
endif()

if (CMAKE_SYSTEM_NAME MATCHES "Linux")
  if (SERVERS)
    add_subdirectory(jemalloc)
    set(JEMALLOC_LIB "jemalloc")
  endif()
endif()

if (CMAKE_SYSTEM_NAME MATCHES "Windows")
  if (SERVERS)
    add_subdirectory(acelite)
    if(USE_MYSQL_SOURCES)
      add_subdirectory(mysqllite)
    endif()
  endif()
  add_subdirectory(bzip2)
  add_subdirectory(zlib)
endif()

add_subdirectory(g3dlite)

if (SERVERS)
  add_subdirectory(sockets)
  add_subdirectory(gsoap)
endif()

if (TOOLS)
  add_subdirectory(libmpq)
endif()
